package com.heartunderblade.springbootstarter.autoConfig;

import com.heartunderblade.springbootstarter.starter.RpcConsumerBootstrap;
import com.heartunderblade.springbootstarter.starter.RpcInitBootstrap;
import com.heartunderblade.springbootstarter.starter.RpcProviderBootstrap;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RpcAutoConfiguration {
    @Bean
    public RpcInitBootstrap rpcInitBootstrap() {
        return new RpcInitBootstrap();
    }

    @Bean
    public RpcProviderBootstrap rpcProviderBootstrap() {
        return new RpcProviderBootstrap();
    }

    @Bean
    public RpcConsumerBootstrap rpcConsumerBootstrap() {
        return new RpcConsumerBootstrap();
    }
}